#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void)
{
	int count, sum;
	int n;
	printf("enter the upper limits:");
	scanf("%d", &n);
	count = 0;
	sum = 0;
	while (count++<n)
	{
		sum = sum + count*count;
	}
	printf("sum=%d\n", sum);
	return 0;
}